<?php

namespace App\Http\Resources\School;

use Illuminate\Http\Resources\Json\Resource;

/**
 * Class SchoolResource
 * @package App\Http\Resources\School
 */
class SchoolResource extends Resource
{
    /**
     * @param \Illuminate\Http\Request $request
     * @return array
     */
    public function toArray($request)
    {
        return [
            'id' => $this->id,
            'address' => $this->address,
            'city' => $this->city,
            'contact_name' => $this->contact_name,
            'contact_phone' => $this->contact_phone,
            'country' => $this->country,
            'detail_address' => $this->detail_address,
            'name' => $this->name,
            'province' => $this->province
        ];
    }
}